package cn.exrick.xboot.base.entity

import cn.exrick.xboot.core.base.XbootBaseEntity
import cn.exrick.xboot.core.base.XbootBaseEntityKt
import cn.exrick.xboot.core.common.constant.CommonConstant
import cn.exrick.xboot.core.common.utils.SnowFlakeUtil
import com.baomidou.mybatisplus.annotation.TableId
import com.baomidou.mybatisplus.annotation.TableName
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import org.hibernate.annotations.DynamicInsert
import org.hibernate.annotations.DynamicUpdate
import javax.persistence.Column
import javax.persistence.Entity
import javax.persistence.Id
import javax.persistence.Table

/**
 * @author Fei
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "en_enterprise_user_status")
@TableName("en_enterprise_user_status")
@ApiModel(value = "企业状态")
data class EnterpriseUserStatus(

        @ApiModelProperty("企业id")
        var enterpriseUserId: String? = null,

        @ApiModelProperty("风险等级")
        var riskLevel: String? = "一级",

        @ApiModelProperty("是否全员安全培训合格单位(0:不是，1：是)")
        var isAllQualified: Int = 0,

        @ApiModelProperty("公司经营状态(默认待审核)")
        var managementForms: String = CommonConstant.PRE_CHECK_DESC

) : XbootBaseEntityKt() {

    @Id
    @TableId
    override var id: String = SnowFlakeUtil.nextId().toString()


    companion object {
        const val serialVersionUID = 1L
    }
}